package com.ljj.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName Orders
 * @Description TODO
 * @Author Administrator
 * @Date 2022/3/2 11:57
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Slf4j
@Table(name = "orders")
public class Orders implements Serializable {
    private static final long serialVersionUID = 1L;

    private int id;
    private int uid;

    @Column(name = "ordertime")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date orderTime;
    private Double total;
}
